;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-sanjiao" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M1024 210.944 512 813.056 0 210.944Z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-tu" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512.010745 14.674211c-274.689153 0-497.348302 222.659149-497.348302 497.326812 0 274.687106 222.659149 497.326812 497.348302 497.326812 274.646174 0 497.325789-222.638683 497.325789-497.326812C1009.336534 237.332337 786.655895 14.674211 512.010745 14.674211M512.010745 947.160961c-240.346997 0-435.18245-194.835454-435.18245-435.160961 0-240.345973 194.833407-435.160961 435.18245-435.160961 240.325507 0 435.159938 194.813964 435.159938 435.160961C947.170682 752.325507 752.335229 947.160961 512.010745 947.160961"  ></path>' +
    '' +
    '<path d="M765.894036 325.613986l0-76.939323c-218.450291 0-251.960499 71.89954-253.883291 76.55456-1.942235-4.653997-35.45449-76.55456-253.885338-76.55456l0 76.939323c-17.788132-1.072425-36.5658-1.698688-56.438407-1.698688l0 396.649855c0 0 171.582867-18.536168 256.777201 26.650987 14.449084 7.65126 29.969569 27.966958 53.546543 28.110221 23.532973 0.101307 39.135322-20.481474 53.644781-28.16855 85.2148-45.127803 256.657474-26.590612 256.657474-26.590612L822.313 323.913251C802.461883 323.913251 783.661701 324.540538 765.894036 325.613986L765.894036 325.613986zM492.563834 694.338838c-59.697637-34.218336-148.433634-40.371476-203.617467-40.371476-0.889253 0-1.76111 0-2.588965 0l0-376.638079c167.17037 5.222955 198.294229 56.499805 199.772906 59.170634l6.415107 15.378246 0 342.458629L492.563834 694.338838 492.563834 694.338838zM737.665111 653.967362c-0.850367 0-1.700735 0-2.611477 0-55.54813 0-145.235802 6.232958-204.892507 41.12156L530.161127 354.996177l7.708566-18.49626c1.477654-2.629897 32.519648-53.950749 199.793372-59.170634L737.665111 653.967362 737.665111 653.967362z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-shu" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M893.614907 120.84472c-19.080745 0-31.801242 12.720497-31.801242 31.801242l0 737.78882c0 31.801242-31.801242 63.602484-63.602484 63.602484L238.509317 954.037267c-38.161491 0-82.68323-31.801242-82.68323-63.602484l0-69.962733c0-31.801242 38.161491-50.881988 76.322981-50.881988l534.26087 0c19.080745 0 31.801242-12.720497 31.801242-31.801242L798.21118 114.484472c0-69.962733-50.881988-114.484472-127.204969-114.484472L238.509317 0C168.546584 0 98.583851 38.161491 98.583851 114.484472l0 782.310559c0 0 0 0 0 6.360248 0 6.360248 0 6.360248 0 12.720497 6.360248 57.242236 63.602484 101.763975 120.84472 108.124224 0 0 6.360248 0 6.360248 0 0 0 0 0 6.360248 0l566.062112 0c69.962733 0 127.204969-57.242236 127.204969-120.84472L925.416149 152.645963C925.416149 139.925466 912.695652 120.84472 893.614907 120.84472zM772.770186 833.192547 251.229814 833.192547c-19.080745 0-31.801242 12.720497-31.801242 31.801242s12.720497 31.801242 31.801242 31.801242l521.540373 0c19.080745 0 31.801242-12.720497 31.801242-31.801242S791.850932 833.192547 772.770186 833.192547z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-yonghu" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M515.541449 7.082899c-280.359429 0-508.458551 228.120391-508.458551 508.458551s228.120391 508.458551 508.458551 508.458551 508.458551-228.120391 508.458551-508.458551S795.900879 7.082899 515.541449 7.082899zM515.541449 981.864196c-257.132626 0-466.301477-209.190121-466.301477-466.322747 0-257.132626 209.168851-466.322747 466.301477-466.322747s466.301477 209.190121 466.301477 466.322747S772.674075 981.864196 515.541449 981.864196zM614.574414 524.177056 614.574414 524.177056c47.751075-31.96876 79.230625-86.398604 79.230625-148.187857 0-98.437405-79.804915-178.24232-178.24232-178.24232-98.437405 0-178.24232 79.804915-178.24232 178.24232 0 61.810523 31.479551 116.219097 79.251895 148.187857-100.266622 39.519598-171.244501 137.170014-171.244501 251.453545 0 0.23397 0 0.446669 0.02127 0.659369 0 0.04254-0.02127 0.10635-0.02127 0.14889 0 15.612155 12.65563 28.246516 28.267786 28.246516 15.590885 0 21.886796-12.63436 21.886796-28.246516 0-0.340319-0.08508-0.659369-0.10635-1.020958 0.10635-118.005774 102.159649-219.995264 220.207964-219.995264 118.112124 0 220.207964 102.095839 220.207964 220.207964 0 0.14889-1.467628 29.054774 21.971875 29.054774 15.505806 0 28.076356-12.57055 28.076356-28.055086 0-0.06381-0.02127-0.12762-0.02127-0.2127 0-0.25524 0.02127-0.510479 0.02127-0.786989C785.797645 661.34707 714.798496 563.696654 614.574414 524.177056zM515.541449 510.734437c-74.402343 0-134.723968-60.321625-134.723968-134.723968 0-74.423613 60.321625-134.723968 134.723968-134.723968 74.423613 0 134.723968 60.321625 134.723968 134.723968S589.943792 510.734437 515.541449 510.734437z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-zhanghuguanli" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M680.64 512c7.744 0 15.744 0.576 24.64 1.664l6.976 19.968 4.608 13.696 14.272 4.288c9.6 2.88 19.136 6.72 28.096 11.136l13.12 6.656 13.12-6.4 19.648-9.472c12.992 9.856 24.64 21.248 35.136 33.856l-9.856 18.88-6.528 12.864 6.656 12.608c4.864 8.768 8.768 17.984 11.776 27.392l4.48 13.632 14.144 4.48 20.608 6.72c1.152 8.64 1.6 16.384 1.6 23.616l0 0.128 0 0.128c0 7.36-0.512 15.488-1.6 24l-20.736 6.656-14.272 4.608-4.352 13.76c-2.88 9.472-6.72 18.624-11.52 27.136l-6.848 12.736 6.528 12.864 9.728 18.88c-5.376 6.72-10.624 12.736-16.128 17.984l-0.128 0 0 0.128c-5.504 5.376-11.648 10.496-18.624 15.744l-19.52-9.472-13.248-6.4-13.12 6.656c-9.152 4.48-18.624 8.256-28.096 11.392l-14.272 4.224-4.48 13.504L705.344 902.4c-8.896 1.28-17.024 1.728-24.768 1.728-7.616 0-15.744-0.512-24.768-1.728l-6.848-20.096-4.608-13.632-14.272-4.096c-9.6-3.136-19.136-6.72-28.032-11.392l-12.992-6.656-13.376 6.4-19.584 9.472c-6.976-5.376-13.056-10.368-18.624-15.872-5.568-5.248-10.944-11.264-16.256-17.984l9.664-18.752L537.6 796.864l-6.848-12.608c-4.8-8.768-8.704-17.984-11.648-27.264l-4.352-13.76-14.08-4.48-20.736-6.72c-1.216-8.512-1.664-16.512-1.664-23.872 0-7.488 0.448-15.36 1.664-24l20.672-6.528 14.08-4.608 4.416-13.76c3.008-9.472 6.912-18.752 11.648-27.264l6.848-12.608L530.88 606.4 521.152 587.52c10.176-12.48 21.952-24 34.88-33.664l19.456 9.344L588.864 569.6l13.12-6.72c8.768-4.48 18.368-8.256 28.096-11.264l14.272-4.224 4.608-13.632 6.848-20.096C664.896 512.576 673.024 512 680.64 512L680.64 512 680.64 512zM680.768 456c-13.248 0-26.24 1.28-41.28 3.52L628.352 461.248 614.272 502.144c-12.864 3.904-25.28 8.768-37.12 14.784L537.408 497.664 528.256 504C505.792 519.808 486.144 538.752 469.888 560.576L463.232 569.344 483.2 607.872c-6.208 11.52-11.328 23.488-15.36 36.032L425.6 657.344l-1.792 10.752c-2.432 14.656-3.52 27.52-3.52 39.872s1.152 25.344 3.52 40l1.792 10.752 42.176 13.632c3.968 12.48 9.088 24.512 15.36 35.904l-19.84 38.4 6.656 9.024c8.768 11.648 17.536 21.632 26.624 30.656 9.152 8.768 19.52 17.28 31.68 25.728l9.152 6.4 39.744-19.136c11.904 6.016 24.128 11.008 37.12 14.848l14.144 40.768 11.136 1.728C654.528 958.976 667.904 960 680.768 960c12.736 0 26.24-1.024 41.28-3.392l11.136-1.728 13.888-40.768c12.992-3.904 25.344-9.024 37.376-14.848l39.616 19.136 9.152-6.4c12.224-8.512 22.528-17.024 31.616-25.728 9.28-9.024 17.856-19.008 26.624-30.656l6.656-9.024-19.904-38.528c6.272-11.392 11.392-23.36 15.36-35.904l42.24-13.632 1.6-10.752c2.496-14.656 3.648-27.648 3.648-40 0.128-12.352-1.152-25.28-3.648-39.872l-1.6-10.88-42.24-13.504c-4.032-12.48-9.152-24.384-15.36-35.904l19.904-38.528-6.528-8.96c-16.512-21.696-36.032-40.704-58.368-56.448l-9.28-6.4-39.744 19.264c-11.904-6.016-24.128-11.008-37.12-14.848l-14.144-40.768L721.856 459.52C707.008 457.216 693.888 456 680.768 456L680.768 456 680.768 456 680.768 456zM680.768 456M680.576 681.024c7.232 0 14.016 2.88 19.136 8 5.12 4.992 7.872 11.904 7.872 19.008 0 7.232-2.752 14.016-7.872 19.136s-11.904 7.872-19.136 7.872c-7.168 0-13.952-2.752-19.008-7.872-5.12-5.12-7.936-11.904-7.936-19.136 0-7.104 2.816-14.016 7.936-19.008C666.624 683.904 673.344 681.024 680.576 681.024L680.576 681.024 680.576 681.024zM680.576 627.136c-44.608 0-80.896 36.096-80.896 80.896s36.224 81.024 80.896 81.024c44.736 0 81.024-36.224 81.024-81.024S725.312 627.136 680.576 627.136L680.576 627.136 680.576 627.136 680.576 627.136zM680.576 627.136M480.832 480.512C548.48 441.344 593.984 369.856 593.984 288c0-123.712-103.744-224-231.552-224C234.688 64 131.072 164.288 131.072 288c0 81.856 45.312 153.344 112.96 192.448C143.296 524.352 73.152 622.272 73.152 736l0 196.032C73.152 947.52 86.144 960 102.08 960c16 0 28.992-12.48 28.992-28.032L131.072 736c0-123.776 103.616-224 231.36-224 43.904 0 84.992 11.904 119.872 32.448l91.072 0C547.328 517.632 515.968 495.808 480.832 480.512L480.832 480.512zM188.864 288c0-92.8 77.696-168 173.568-168S536 195.264 536 288c0 92.736-77.632 168-173.504 168S188.864 380.8 188.864 288L188.864 288zM188.864 288"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-delete" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M942.656 96.448 561.984 96.64 561.728 46.72c0-25.664-20.224-46.464-45.184-46.464-0.768 0-1.408 0.384-2.176 0.448-0.768 0-1.408-0.448-2.176-0.448-24.96 0-45.248 20.8-45.248 46.464L467.2 96.64 81.344 96.832c-25.024 0-45.248 20.864-45.248 46.464 0 25.664 20.224 46.4 45.248 46.4l48.768 0 0.32 692.16L130.56 881.856l0 49.152c0 51.008 40.448 92.288 90.432 92.288L266.24 1023.296l0 0.384 497.536-0.32 0-0.064 45.248 0c49.664 0 89.92-40.896 90.432-91.52L899.2 283.264c0-25.472-20.224-46.208-45.248-46.208-25.088 0-45.248 20.672-45.248 46.208l0.32 583.36c-4.8 53.696-26.56 64.448-89.28 64.448l1.152 0-421.696 0.256 11.008-0.256c-62.528 0-84.352-10.752-89.28-63.936L220.608 189.632l722.048-0.32c25.024 0 45.248-20.8 45.248-46.464S967.616 96.448 942.656 96.448z"  ></path>' +
    '' +
    '<path d="M401.28 232.512c-24.96 0-45.248 20.8-45.248 46.4l0.448 559.104c0 25.6 20.224 46.4 45.248 46.4 24.96 0 45.248-20.736 45.248-46.4L446.528 278.912C446.528 253.312 426.24 232.512 401.28 232.512z"  ></path>' +
    '' +
    '<path d="M627.456 232.512c-24.96 0-45.248 20.8-45.248 46.4l0.448 559.104c0 25.6 20.224 46.4 45.248 46.4s45.184-20.736 45.184-46.4l-0.384-559.104C672.704 253.312 652.416 232.512 627.456 232.512z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-search" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M1011.240772 951.281994l-284.476422-284.156642c-16.564612-16.628568-43.554057-16.628568-60.24658 0-0.447692 0.383736-0.63956 1.023296-1.087253 1.470989-61.525701 60.566361-145.883705 98.172506-239.131597 98.172506-188.158641 0-340.629817-152.40722-340.629817-340.437949 0-188.030729 152.471176-340.437949 340.629817-340.437949s340.693773 152.40722 340.693773 340.437949c0 26.221972-3.645494 51.484604-9.273624 75.979764-0.447692 1.598901-1.343077 2.878021-1.598901 4.540878-0.191868 1.023296 0.191868 1.918681 0.063956 2.878021-0.575604 2.302417-0.831428 4.732746-1.407033 6.971207l1.598901 1.598901c1.279121 21.936918 14.965711 40.612079 35.303729 43.937793 23.919555 3.837362 46.751858-14.709887 51.100868-41.379552l0.191868 0c6.843295-30.187246 10.872525-61.461745 10.872525-93.75954C853.781026 191.612267 662.680407 0.703516 427.066392 0.703516 191.452376 0.703516 0.351758 191.612267 0.351758 427.09837c0 235.486103 191.036662 426.394854 426.650678 426.394854 102.265692 0 195.897321-36.071201 269.446755-96.061957l254.22522 254.097308c16.884392 16.628568 43.873837 16.628568 60.502405 0C1027.805384 994.900006 1027.805384 968.038474 1011.240772 951.281994z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-xinwen" viewBox="0 0 1089 1024">' +
    '' +
    '<path d="M535.228606 505.685894m-435.875138 0a435.875138 435.875138 0 1 0 871.750277 0 435.875138 435.875138 0 1 0-871.750277 0Z" fill="#2EA9DF" ></path>' +
    '' +
    '<path d="M731.686682 242.338658v0.057663-0.057663zM345.978414 377.500892h108.118254v108.118254H345.978414V377.500892z m384.209029-98.142544c0-21.143125-17.145153-38.307499-38.365162-38.307499H294.888935A38.384383 38.384383 0 0 0 256.523773 279.377569v460.497269c0 27.774378 19.91298 43.055092 47.7258 43.055092h477.738526c27.793599 0 51.185584-15.280713 51.185585-43.055092V371.061849h-102.96702V279.358348h-0.019221z m-101.679212 71.098564a19.221023 19.221023 0 0 1 19.297907 19.221023c0 10.610005-8.495692 19.221023-19.297907 19.221023h-84.956922a19.221023 19.221023 0 0 1-19.297907-19.221023c0-10.610005 8.495692-19.221023 19.297907-19.221023h84.956922z m0 129.357485a19.221023 19.221023 0 0 1 19.297907 19.221023c0 10.610005-8.495692 19.221023-19.297907 19.221023h-84.956922a19.221023 19.221023 0 0 1-19.297907-19.221023c0-10.610005 8.495692-19.221023 19.297907-19.221023h84.956922z m-164.666504-129.357485c10.610005 0 19.221023 8.630239 19.221023 19.221023v126.301342c0 10.610005-8.630239 19.221023-19.221023 19.221023H337.521164c-10.610005 0-19.221023-8.630239-19.221023-19.221023V369.677935c0-10.610005 8.630239-19.221023 19.221023-19.221023h126.320563zM337.847921 700.567846a17.606457 17.606457 0 0 1-17.606457-17.702562c0-9.783501 8.092051-17.702562 17.606457-17.702562h292.35176c9.725838 0 17.606457 7.861398 17.606457 17.702562a17.779446 17.779446 0 0 1-17.606457 17.702562H337.847921z m-0.403641-76.134472a19.144139 19.144139 0 0 1-19.144139-19.221023c0-10.610005 8.476471-19.221023 19.144139-19.221023h291.217719c10.571563 0 19.144139 8.534134 19.144139 19.221023 0 10.610005-8.476471 19.221023-19.144139 19.221023H337.44428z m469.338939 115.460685c0 13.877579-10.917541 22.450155-24.79512 22.450155H756.847001c-13.877579 0-26.640338-8.572576-26.640337-22.450155V391.647565h76.595776v348.246494h-0.019221z" fill="#FFFFFF" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-dianying" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M516.232382 625.423231c-24.542698 0-44.873485 19.629655-44.873485 44.174399 0 24.563169 20.330787 44.872461 44.873485 44.872461 24.544745 0 44.172352-20.330787 44.172352-44.872461C560.404734 645.052886 540.777127 625.423231 516.232382 625.423231z" fill="#fb3f54" ></path>' +
    '' +
    '<path d="M624.890473 516.085502c0 24.541674 20.330787 44.876555 44.872461 44.876555 24.544745 0 44.174399-20.334881 44.174399-44.876555 0-24.544745-19.651149-44.173376-44.174399-44.173376C645.22126 471.912127 624.890473 491.540758 624.890473 516.085502z" fill="#fb3f54" ></path>' +
    '' +
    '<path d="M516.232382 399.026108c24.544745 0 44.172352-19.628631 44.172352-44.173376 0-24.542698-19.649102-44.171329-44.172352-44.171329-24.542698 0-44.873485 19.628631-44.873485 44.171329C471.358897 379.397477 491.689684 399.026108 516.232382 399.026108z" fill="#fb3f54" ></path>' +
    '' +
    '<path d="M354.276984 471.912127c-24.541674 0-44.170305 19.628631-44.170305 44.173376 0 24.541674 19.628631 44.876555 44.170305 44.876555 24.544745 0 44.876555-20.334881 44.876555-44.876555C399.15354 491.540758 378.820706 471.912127 354.276984 471.912127z" fill="#fb3f54" ></path>' +
    '' +
    '<path d="M512.021495 245.475084c-147.216268 0-266.400554 119.886442-266.400554 267.100663 0 146.514112 119.184286 266.399531 266.400554 266.399531 147.218315 0 266.399531-119.885418 266.399531-266.399531C778.421025 365.361526 659.23981 245.475084 512.021495 245.475084zM516.232382 269.996288c46.980975 0 84.839044 37.853974 84.839044 84.836997 0 46.981999-37.877516 84.836997-84.839044 84.836997-46.980975 0-84.836997-37.854998-84.836997-84.836997C431.395385 307.850262 469.250383 269.996288 516.232382 269.996288zM560.362769 512.574724c0 27.327779-21.03499 48.364816-48.364816 48.364816-27.324708 0-48.359698-21.012472-48.359698-48.364816 0-27.349274 21.033966-49.063901 48.359698-49.063901C539.327779 463.510823 560.362769 485.247968 560.362769 512.574724zM354.276984 600.902028c-46.977905 0-84.83802-37.859092-84.83802-84.841091 0-46.976881 37.859092-84.835973 84.83802-84.835973 46.980975 0 84.840067 37.858068 84.840067 84.835973C439.117052 563.042936 401.258983 600.902028 354.276984 600.902028zM516.232382 754.457145c-46.980975 0-84.836997-37.859092-84.836997-84.839044 0-46.983022 37.854998-84.839044 84.836997-84.839044s84.839044 37.857045 84.839044 84.839044C601.070402 716.59703 563.21131 754.457145 516.232382 754.457145zM754.603001 516.061961c0 46.980975-37.879563 84.841091-84.841091 84.841091-46.975858 0-84.834949-37.859092-84.834949-84.841091 0-46.976881 37.859092-84.835973 84.834949-84.835973C716.743909 431.224964 754.603001 469.084056 754.603001 516.061961z" fill="#fb3f54" ></path>' +
    '' +
    '<path d="M512 0.449339c-282.645327 0-511.775331 229.130004-511.775331 511.775331 0 282.64635 229.130004 511.775331 511.775331 511.775331 282.64635 0 511.775331-229.12898 511.775331-511.775331C1023.775331 229.579343 794.64635 0.449339 512 0.449339zM512.021495 818.93879c-56.083411 0-107.954912-14.715588-152.831467-40.664644-42.768041-9.805615-84.133817-6.317355-124.097329 10.507771-8.420751 3.506685-17.524211 1.401241-22.43623-7.72269-9.123931-18.929546 4.209864-25.242806 15.417744-30.836511 21.737145-11.206856 49.062877-14.719682 74.310802-14.719682C242.79287 679.423717 204.934802 600.200896 204.934802 512.574724c0-169.653522 137.410653-307.064175 307.063151-307.064175C681.651475 205.511572 819.065198 342.922225 819.065198 512.574724 819.085669 681.527114 681.673993 818.93879 512.021495 818.93879z" fill="#fb3f54" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-tubiao_yinle" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 0c282.88 0 512 229.12 512 512S794.88 1024 512 1024 0 794.88 0 512 229.12 0 512 0z m229.12 220.16h-371.2c-21.76 3.84-35.84 24.32-35.84 46.08V665.6c-16.64-17.92-34.56-24.32-56.32-24.32-52.48 0-96 42.24-96 96 0 52.48 43.52 93.44 96 93.44 49.92 0 101.12-35.84 106.24-90.88V431.36h355.84v193.28c-15.36-17.92-32-20.48-53.76-20.48-52.48 0-98.56 42.24-98.56 94.72s46.08 94.72 98.56 94.72c49.92 0 104.96-40.96 103.68-94.72V264.96c1.28-30.72-26.88-44.8-48.64-44.8z m-1.28 172.8H384v-93.44c0-2.56 1.28-3.84 3.84-3.84l348.16-1.28h1.28c1.28 0 1.28 0 2.56 1.28s1.28 1.28 1.28 2.56v35.84l-1.28 58.88z" fill="#F5C932" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)